package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 亚马逊供应商api订单商品信息子表
 * </p>
 *
 * @author ding
 * @since 2024-06-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_amazon_vdf_item")
public class OrderAmazonVdfItemDo extends Model<OrderAmazonVdfItemDo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("purchase_order_number")
    private String purchaseOrderNumber;

    /**
     * 序号
     */
    @TableField("item_sequence_number")
    private Integer itemSequenceNumber;

    /**
     * 买家商品的标准识别码（ASIN）
     */
    @TableField("buyer_product_identifier")
    private String buyerProductIdentifier;

    /**
     * 供应商商品产品标识
     */
    @TableField("vendor_product_identifier")
    private String vendorProductIdentifier;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 订购数量
     */
    @TableField("ordered_quantity")
    private Integer orderedQuantity;

    /**
     * 定时配送服务类型
     */
    @TableField("scheduled_delivery_service_type")
    private String scheduledDeliveryServiceType = "";

    /**
     * 预定交货的最早指定交货日期
     */
    @TableField("earliest_nominated_delivery_date")
    private Date earliestNominatedDeliveryDate;

    /**
     * 预定交货的最晚指定交货日期
     */
    @TableField("latest_nominated_elivery_date")
    private Date latestNominatedEliveryDate;

    /**
     * 送货时打印的礼品信息
     */
    @TableField("gift_message")
    private String giftMessage = "";

    /**
     * 礼品包装的标识符
     */
    @TableField("gift_wrap_id")
    private String giftWrapId = "";

    /**
     * 供应商的净价（税前）以及货币信息json
     */
    @TableField(value = "net_price_json")
    private String netPriceJson;

    /**
     * 供应商的净价（税前）以及货币信息
     */
    @TableField("net_price")
    private BigDecimal netPrice;

    /**
     * 订单项的税务详细信息总额json
     */
    @TableField("tax_details_json")
    private String taxDetailsJson;

    /**
     * 订单项的税务详细信息总额
     */
    @TableField("tax_details")
    private BigDecimal taxDetails;

    /**
     * 亚马逊的价格（成本）json
     */
    @TableField("total_price_json")
    private String totalPriceJson;
    /**
     * 亚马逊的价格（成本）
     */
    @TableField("total_price")
    private BigDecimal totalPrice;

    @TableField("create_by")
    private Long createBy;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "delete_flag", fill = FieldFill.INSERT)
    @TableLogic(value = "0", delval = "1")
    private Integer deleteFlag;

    @TableField("update_by")
    private Long updateBy;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
